import requset from '../../utils/requset';
// import config from '../../utils/config';
export default {
	//验证是否已经注册
	isRegister: (phone) => {
		return requset.post(`/cellphone/existence/check?phone=${phone}`);
	},
	//获取验证码
	getCode: (phone) => {
		return requset.post(`/captcha/sent?phone=${phone}`);
	},
  //验证验证码是否正确
  isCodeMa:(phone,captcha)=>{
    return requset.post(`/captcha/verify?phone=${phone}&captcha=${captcha}`);
  },
  //发起注册
  reqRegister(phone,password='123456789ydq',captcha,nickname="binary1345"){
    return  requset.post(`/register/cellphone?phone=${phone}&password=${password}&captcha=${captcha}&nickname=${nickname}`);
  }
};
